package com.atXiao.video.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lixiaoxiao
 * @since 2022-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("m_video")
public class Video implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 视频标题
     */
    private String title;

    /**
     * 视频时长
     */
    private String time;

    /**
     * 视频封面地址
     */
    private String img;

    /**
     * 用户名
     */
    private String username;

    /**
     * 视频地址
     */
    private String url;

    /**
     * 视频介绍
     */
    private String introduction;

    @JsonFormat(pattern = "yyyy-MM-dd  HH:mm:ss ",timezone = "GMT+8")
    private Date postTime;

    //默认为0对所有人可见，1仅粉丝可见，2仅自己可见，3置顶
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date startTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;




}
